FROM nginx:1.21.1
LABEL MAINTAINER zhmingyong
ARG profile
USER root
ENV profile ${profile}
ENV LANG C.UTF-8

copy ./dist /usr/share/nginx/html

ADD ./dist/serverConfig.json /usr/share/nginx/html/static/serverConfig.json
#copy ./nginx.conf.template /etc/nginx/nginx.conf.template
copy ./nginx.conf /etc/nginx/nginx.conf
# COPY docker-entrypoint.sh /
#RUN  chmod 777 /docker-entrypoint.sh

#ENTRYPOINT ["/docker-entrypoint.sh"]

WORKDIR /usr/share/nginx/html

EXPOSE 80
